import request from '@neu/biz-core/utils/request'
const baseUrl = 'dcam/api/w/workflow/'
export const create = (type, data) => {
  return request({
    url: baseUrl + type + '/itsm',
    data,
    method: 'post'
  })
}

export const detail = (type, workOrderNum, taskId) => {
  return request({
    url: baseUrl + type + '/itsm/' + workOrderNum + '/' + taskId,
    method: 'get'
  })
}

export const confirm = (data) => {
  return request({
    url: 'dcam/api/w/workflow/confirms',
    data,
    method: 'post'
  })
}
